package com.kurumi.medical.component;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * 配置文件读取
 * 
 * @author lyh
 *
 */
@Component
@PropertySource(value = "classpath:application.properties")
public class MyConfig {

	// ------------------FTP病程记录相关配置信息start-----------------------
	@Value("${ftp.host}")
	private String ftpHost;

	@Value("${ftp.port}")
	private int ftpPort;
	
	@Value("${ftp.username}")
	private String ftpUsername;

	@Value("${ftp.password}")
	private String ftpPassword;
	
	@Value("${cmis.server.host}")
	private String cmisServerHost;
	
	@Value("${cmis.file.local.dir}")
	private String cmisFileLocalDir;

	// 病程记录存放本地位置
	@Value("${progressNote.dir}")
	private String progressNoteDir;

	// -------------------FTP病程记录相关配置信息end-----------------------------------

	@Value("${spring.jackson.date-format}")
	private String dateFormate;

	@Value("${config.hospital.visit.log.path}")
	private String logPath;

	
	@Value("${examination.local.dir}")
	private String examinationLocalDir;

	@Value("${config.hospital.visit.json.path}")
	private String hospitalVisitJsonPath;

	@Value("${config.hospital.visit.json.version.path}")
	private String hospitalVisitJsonVersionPath;

	// 检验报告单接口地址
	@Value("${config.examination.reports.service.path}")
	private String examinationReportsServicePath;
	
	//通用的路径配置  begin
	@Value("${config.file.storage.all.disk}")
	private String configFileStorageAllDisk;
	//end

	public String getHospitalVisitJsonVersionPath() {
		return hospitalVisitJsonVersionPath;
	}

	public void setHospitalVisitJsonVersionPath(String hospitalVisitJsonVersionPath) {
		this.hospitalVisitJsonVersionPath = hospitalVisitJsonVersionPath;
	}

	public String getDateFormate() {
		return dateFormate;
	}

	public void setDateFormate(String dateFormate) {
		this.dateFormate = dateFormate;
	}

	public String getHospitalVisitJsonPath() {
		return hospitalVisitJsonPath;
	}

	public void setHospitalVisitJsonPath(String hospitalVisitJsonPath) {
		this.hospitalVisitJsonPath = hospitalVisitJsonPath;
	}

	public String getExaminationReportsServicePath() {
		return examinationReportsServicePath;
	}

	public void setExaminationReportsServicePath(String examinationReportsServicePath) {
		this.examinationReportsServicePath = examinationReportsServicePath;
	}

	public String getExaminationLocalDir() {
		return examinationLocalDir;
	}

	public void setExaminationLocalDir(String examinationLocalDir) {
		this.examinationLocalDir = examinationLocalDir;
	}

	public String getProgressNoteDir() {
		return progressNoteDir;
	}

	public void setProgressNoteDir(String progressNoteDir) {
		this.progressNoteDir = progressNoteDir;
	}

	public String getFtpHost() {
		return ftpHost;
	}

	public void setFtpHost(String ftpHost) {
		this.ftpHost = ftpHost;
	}

	public int getFtpPort() {
		return ftpPort;
	}

	public void setFtpPort(int ftpPort) {
		this.ftpPort = ftpPort;
	}

	public String getFtpUsername() {
		return ftpUsername;
	}

	public void setFtpUsername(String ftpUsername) {
		this.ftpUsername = ftpUsername;
	}

	public String getFtpPassword() {
		return ftpPassword;
	}

	public void setFtpPassword(String ftpPassword) {
		this.ftpPassword = ftpPassword;
	}

	public String getCmisServerHost() {
		return cmisServerHost;
	}

	public void setCmisServerHost(String cmisServerHost) {
		this.cmisServerHost = cmisServerHost;
	}

	public String getCmisFileLocalDir() {
		return cmisFileLocalDir;
	}

	public void setCmisFileLocalDir(String cmisFileLocalDir) {
		this.cmisFileLocalDir = cmisFileLocalDir;
	}

	public String getLogPath() {
		return logPath;
	}

	public void setLogPath(String logPath) {
		this.logPath = logPath;
	}

	public String getConfigFileStorageAllDisk() {
		return configFileStorageAllDisk;
	}

	public void setConfigFileStorageAllDisk(String configFileStorageAllDisk) {
		this.configFileStorageAllDisk = configFileStorageAllDisk;
	}

	
	

	
	
}
